.text-overflow() {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.menu {
  position: fixed;
  top: 82px;
  width: 230px;
  left: 0;
  bottom: 0;
  background: #fff;
}

.menu-wrap{
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 20px;
}

.menu-search-result-wrap  {
  position: absolute;
  top: 115px;
  right: 10px;
  left: 10px;
  bottom: 20px;
  overflow: hidden;
}

.menu-wrap,
.menu-drop-wrap {
  padding: 0;
  margin: 0;
}

.menu-item,
.menu-drop-item {
  list-style: none;
}

.menu-item > a,
.menu-drop-item > a{
  display: block;
  text-decoration: none;
  color: #333;
}

.menu-drop {
  display: none;
}

.menu-item.active {
  .menu-drop {
    display: block;
  }

  > a {
    color: @brand-primary;

    &:after {
      border-top-color: @brand-primary;
      transform: rotate(180deg);
    }
  }

}

.menu-item > a {
  position: relative;
  height: 54px;
  line-height: 54px;
  font-size: 18px;
  padding: 0 20px;

  .text-overflow();

  &:after {
    content: '';
    position: absolute;
    right: 20px;
    transform-origin:center;
    top: 50%;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 6px solid #bbb;
    transition: all .3s;
  }
}

.menu-drop-item > a {
  height: 48px;
  line-height: 48px;
  padding: 0 20px;
  position: relative;
  transition: all .3s;

  .text-overflow();

  .icon {
    font-size: 24px;
    margin-right: 5px;
  }

  span {
    font-size: 16px;
    vertical-align: 3px;
  }

  &:after {
    content: '';
    position: absolute;
    top: 0;
    width: 5px;
    left: 0;
    bottom: 0;
    background: @brand-primary;
    transition: all .3s;
    transform: translate(-100%, 0);
  }

}

.menu-drop-item.active > a {
  background: #F6F8FB;

  color: @brand-primary;

  &:after {
    transform: translate(0, 0);
  }
}

.menu-search {
  padding: 20px 10px;
}


.menu-search-result-wrap {
  margin: 0;
  padding: 0;
}

.menu-search-result-title {
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  color: #999;
  margin-bottom: 10px;
}

.menu-search-result-item {
  list-style: none;
}

.menu-search-result-item > a {
  color: #333;
  display: block;
  padding: 6px 0;
  text-decoration: none;
  cursor: pointer;

  .text-overflow();
}

.menu-search-result-item:hover > a {
  color: @brand-primary;
}

.menu-search-result-item > a span {
}

.mCSB_inside>.mCSB_container {
  margin-right: 0;
}

.menu-search-form {
  position: relative;

  &:after {
    content: '\e701';
    position: absolute;
    font-family: 'iconfont';
    right: 8px;
    top: 10px;
    color: #ddd;
    font-size: 18px;
    line-height: 1;
  }
}

.menu-search-input {
  padding-right: 34px;
}

.content-wrap {
  position: absolute;
  padding: 30px;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.menu ~ .content-wrap {
  left: 230px;
}

.navbar ~ .content-wrap {
  top: @navbar-height;
}

.content {
  background: #fff;
  padding: 40px 30px;
}

@media (max-width: @screen-md) {
  // .menu {
  //   display: none;
  //   width: 100%;
  //   position: relative;
  //   z-index: 100;
  // }
  // .menu ~ .content-wrap {
  //   left: 0;
  // }
}